package com.song.provider.service;

import com.song.provider.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2024/1/10
 * @Version 1.0
 **/
@FeignClient(value = "provider-9010",path = "provider")
public interface BookService {

    @GetMapping("/")
    public List<Book> getBookList();

    @GetMapping("/{id}")
    public Book findById(@PathVariable("id") long id);
}
